package one.stand.controller;

import one.stand.model.ResultModel;
import one.stand.request.SubRequest;
import one.stand.response.SubscriptionNewResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 订阅消息模板查询
 * @author luoyang
 * @date 2020-04-13
 */
@RestController
@RequestMapping("subscription")
public class SubscriptionController extends BaseController {

    /**
     * 获取订阅消息配置
     * @param request
     * @return
     */
    @PostMapping("getComanySub")
    public ResultModel<List<SubscriptionNewResponse>> getComanySub(@RequestBody SubRequest request){
        return subscriptionService.getCompanyNotice(request);
    }
}
